<?php 
namespace Think\Storage\Driver;
class File{
	
	private $contents = array();
	
	public function __construct(){}
	
	public function has($filename,$type='')
	{
		return is_file($filename);
	}
	
	public function load($filename,$vars=null)
	{
		if (!is_null($vars)) 
		{
		    extract($vars,EXTR_OVERWRITE);
		}
		include $filename;
	}
	
	public function unlink($filename,$type='')
	{
		unset($this->contents[$filename]);
		return is_file($filename) ? unlink($filename) : false;
	}
}
